﻿//JumbotCms_4.1 Final
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using JumbotCms.API;
namespace JumbotCms.WebFile.Admin.Attachment
{
    public partial class _preview : AdminCenter
    {
        public string RootPath = string.Empty;
        public string ElementID = string.Empty;
        private string _sUserUploadPath;
        protected void Page_Load(object sender, EventArgs e)
        {
            ChannelId = Str2Str(q("ccid"));
            ElementID = q("ElementID");
            Admin_Load("", "html", true);
            string strXmlFile = HttpContext.Current.Server.MapPath("~/_data/config/upload_admin.config");
            Jumbot.DataOper.XmlControl XmlTool = new Jumbot.DataOper.XmlControl(strXmlFile);
            this._sUserUploadPath = XmlTool.GetText("Module/" + ChannelType.ToLower() + "/path");
            RootPath = site.Dir + ChannelDir + this._sUserUploadPath + "/";
        }
    }
}
